<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>

        var name = "it|sxt|itbaizhan";
        var result = name.split("|");
        console.log(name);
        console.log(result);//["it", "sxt", "itbaizhan"]  数组
        var name1 = "s|x|t";
        console.log(name1.split(""));
        console.log(name1.split());

        var name3 = "itbaizhansxt";
        console.log(name3.split("",5));

    </script>
</body>
</html>